import { Mesh } from '@babylonjs/core/Meshes/mesh';
import { DefaultStage } from '../default-stage';
import { Asset } from './asset';
import { Character } from './character';
import { PhysicsAggregate } from '@babylonjs/core/Physics/v2/physicsAggregate';
import { PhysicsShapeType } from '@babylonjs/core/Physics/v2/IPhysicsEnginePlugin';


class Landscape {

    public static initialize(stage: DefaultStage) {
        this.setStaticBody(stage);
    }

    private static setStaticBody(stage:DefaultStage):void{
        const pas:PhysicsAggregate[]=[];
        for(const m of Asset.boundMeshes){
            pas.push(new PhysicsAggregate(m, PhysicsShapeType.BOX, { mass: 0 }, stage.mainScene));
        }
    }
}


export {
    Landscape
};